import 'package:jyofservice/bean/xq_list_entity.dart';

xqListEntityFromJson(XqListEntity data, Map<String, dynamic> json) {
	if (json['xq_code'] != null) {
		data.xqCode = json['xq_code'].toString();
	}
	if (json['xq_name'] != null) {
		data.xqName = json['xq_name'].toString();
	}
	if (json['hrz_id'] != null) {
		data.hrzId = json['hrz_id'] is String
				? int.tryParse(json['hrz_id'])
				: json['hrz_id'].toInt();
	}
	return data;
}

Map<String, dynamic> xqListEntityToJson(XqListEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['xq_code'] = entity.xqCode;
	data['xq_name'] = entity.xqName;
	data['hrz_id'] = entity.hrzId;
	return data;
}